package com.baozhun.mall.common.util

import java.util.Locale

/**
 * @Description:
 * @Author: xuefeng.zhu
 * @CreateDate: 2020-08-18
 * @Version: 1.0
 */
object UrlUtil {

    /**
     * 是否为gif url
     *
     * @return
     */
    fun isGifUrl(url: String): Boolean {
        if (url.isNullOrEmpty()) return false
        return url.lowercase(Locale.getDefault()).endsWith("gif")
    }

}
